<?php
include_once("templates.php");
include_once("inc/func/postreply.php");
include_once("inc/func/categoria.php");
include_once("inc/mysql/conectar.php");

if(!isset($_REQUEST['p']) || !($post_principal = getPostPrincipal($_REQUEST['p'])) || !isset($_SESSION['datosLogin'])) Header("Location: index.php");

template(1,'Responder a un tema');
$_SESSION['datosPostreply']['post_principal'] = $_REQUEST['p'];
include("inc/pages/postreplyForm.php");
template(2,'');
?>
